package com.cloud.bc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cloud.bc.model.entity.BcChats;
import com.cloud.bc.model.entity.BcNotices;
import com.cloud.bc.model.request.ChatRequest;
import com.cloud.bc.model.response.RecentChatResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 聊天
 *
 * @author douhaichao code generator
 * @date 2021-01-12 11:57:16
 */
@Repository
public interface BcChatsMapper extends BaseMapper<BcChats> {

    List<RecentChatResponse> selectRecentChat(@Param("page") Page page,@Param("userId") Integer userId);

    List<BcNotices> selectChatList(@Param("req") ChatRequest req);

    void deleteRecord(@Param("req") BcChats req);

}
